package com.authine.cloudpivot.ext.enums.order;

/**
 * @author DELL
 */

public enum ContractClauseStatusEnum {
    /**
     * 条款状态
     */
    NEW(1, "未启动"),

    DELIVERED(2, "待确认"),

    DONE(3, "已确认");


    public Number code;
    public String des;

    private ContractClauseStatusEnum(Number code, String des) {
        this.code = code;
        this.des = des;
    }

    public static ContractClauseStatusEnum get(Number code) {
        for (ContractClauseStatusEnum c : ContractClauseStatusEnum.values()) {
            if (c.code.toString().equals(code.toString())) {
                return c;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return "code:" + code + ", des:" + des;
    }
}
